.class public Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/EditText;

.field private b:Landroid/widget/EditText;

.field private c:Landroid/widget/EditText;

.field private d:Landroid/view/View;

.field private e:Landroid/content/Context;

.field private f:Lcom/waiqin365/base/login/mainview/TitleBar;

.field private g:Z

.field private h:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->a:Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->b:Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->c:Landroid/widget/EditText;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->g:Z

    new-instance v0, Lcom/waiqin365/base/login/fragment/activity/p;

    invoke-direct {v0, p0}, Lcom/waiqin365/base/login/fragment/activity/p;-><init>(Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;)V

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->h:Landroid/os/Handler;

    return-void
.end method

.method private a()V
    .locals 3

    const/16 v2, 0x8

    const v0, 0x7f0c03b2

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/mainview/TitleBar;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->f:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->f:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->e:Landroid/widget/TextView;

    const v1, 0x7f080551

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->f:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->a:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->f:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->g:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->f:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->i:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->f:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->h:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f0c03b4

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->a:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->a:Landroid/widget/EditText;

    sget-object v1, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setTypeface(Landroid/graphics/Typeface;)V

    const v0, 0x7f0c03b6

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->b:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->b:Landroid/widget/EditText;

    sget-object v1, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setTypeface(Landroid/graphics/Typeface;)V

    const v0, 0x7f0c03b7

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->c:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->c:Landroid/widget/EditText;

    sget-object v1, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setTypeface(Landroid/graphics/Typeface;)V

    const v0, 0x7f0c03b8

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->d:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->d:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->g:Z

    if-eqz v0, :cond_0

    const v0, 0x7f0c03b5

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f0c03b3

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->b()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->e:Landroid/content/Context;

    return-object v0
.end method

.method private b()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->d:Landroid/view/View;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->d:Landroid/view/View;

    const v1, 0x7f020030

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;)Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->b:Landroid/widget/EditText;

    return-object v0
.end method

.method private c()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->d:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->d:Landroid/view/View;

    const v1, 0x7f0200e1

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    return-void
.end method

.method private d()V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_2

    :cond_0
    iget-boolean v1, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->g:Z

    if-nez v1, :cond_2

    const v0, 0x7f08019c

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    :cond_1
    :goto_0
    return-void

    :cond_2
    const-string/jumbo v1, "_loginPassword"

    iget-object v2, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->b:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {p0, v1, v2}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_3

    iget-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->g:Z

    if-nez v0, :cond_3

    const v0, 0x7f08067c

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->b:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->c:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->e:Landroid/content/Context;

    invoke-static {v0, v1, v2}, Lcom/waiqin365/base/login/d/g;->a(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-direct {p0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->c()V

    const-string/jumbo v1, ""

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v1, Lcom/waiqin365/base/login/b/a/ab;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v2

    invoke-virtual {v2, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/base/login/b/a/ab;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/base/login/b/c;

    iget-object v2, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->h:Landroid/os/Handler;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/base/login/b/c;-><init>(Landroid/os/Handler;Lcom/waiqin365/base/login/b/d;)V

    invoke-virtual {v0}, Lcom/waiqin365/base/login/b/c;->start()V

    goto :goto_0
.end method


# virtual methods
.method public onBackPressed()V
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->g:Z

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->back()V

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    iget-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->g:Z

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->back()V

    goto :goto_0

    :sswitch_1
    invoke-direct {p0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->d()V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c0089 -> :sswitch_0
        0x7f0c008a -> :sswitch_0
        0x7f0c03b8 -> :sswitch_1
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    iput-object p0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->e:Landroid/content/Context;

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f03009f

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "isForce"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->g:Z

    invoke-direct {p0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeModifyPassActivity;->a()V

    return-void
.end method
